package com.java.order.orderweb.mapper;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.java.mapper.BaseMapper;
import com.java.order.orderweb.pojo.Order;
import com.java.order.orderweb.pojo.ResultMsg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TriggerWu
 * @since 2018-09-13
 */
@Component
public interface OrderMapper extends BaseMapper<Order> {
     //存入订单
     void save(Order order);
     //查询订单
     Order queryByID(String orderId);

     //根据别名查询订单
     List<Order> queryList(Pagination page , @Param("buyerNick") String buyerNick);

     //修改订单支付状态
     void update(Order order);
}
